// C20:Listing 20.2 -- trying and catching.
#include <iostream>
using namespace std;

const int DefautSize = 10;

int main(void) {
  int top = 90;
  int bottom = 0;

  try {
    cout << "top / 2 = " << (top / 2) << endl;
    cout << "top divided by bottom = ";
    cout << (top / bottom) << endl;
    cout << "top / 3" << (top / 3) << endl;
  } catch (...) {
    cout << "Done." << endl;
  }
}